package com.design.model;

import com.design.model.behavior.FlyNoWay;
import com.design.model.behavior.Squack;

/**
 * 模拟鸭子
 *
 * @author by liuxin
 * @version 0.1
 */
public class SimulationDuck extends Duck {

    public SimulationDuck() {
        flyBehavior = new FlyNoWay();
        quackBehavior = new Squack();
    }

    @Override
    public void swim() {
        System.out.println("我会游泳");
    }

    @Override
    public void display() {

    }
}
